package com.heu.blood.recycle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.recycle.entity.BloodReturnEntity;
import com.heu.blood.recycle.vo.BloodReturnApplicationVo;
import com.heu.blood.recycle.vo.BloodReturnEntityVo;
import com.heu.blood.recycle.vo.BloodReturnWithExamineVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 
 *
 * @author ysl
 * @email 
 * @date 2023-08-28 10:20:28
 */
public interface BloodReturnService extends IService<BloodReturnEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据id查询
    BloodReturnEntityVo getById(Long id);
    //增加一条退血申请信息
    @Transactional
    Boolean saveBloodReturn(BloodReturnWithExamineVo bloodReturnEntity);
    //审核通过
    @Transactional
    Boolean approve(BloodReturnEntity bloodReturnEntity);
    //审核驳回
    @Transactional
    Boolean reject(BloodReturnEntity bloodReturnEntity);

    BloodReturnEntity selectByReturnId(String bloodReturnId);


    BloodReturnApplicationVo  getReturnAlllicationInformation(String bloodId);

}

